<table>
<thead>
<tr>
<th colspan="3">
<?php echo sprintf($this->translate('%d No. %d academic year semester'), $this->year, $this->semester)?>
</th>
<th colspan="3">
<?php echo sprintf($this->translate('%d No. %d academic year semester'), $this->oldYear, $this->oldSemester)?>
</th>
<th rowspan="2"><?php echo $this->translate('student name')?></th>
</tr>
<tr>
<th><?php echo $this->translate('grade')?></th>
<th><?php echo $this->translate('class')?></th>
<th><?php echo $this->translate('number')?></th>
<th><?php echo $this->translate('old grade')?></th>
<th><?php echo $this->translate('old class')?></th>
<th><?php echo $this->translate('old number')?></th>
</tr>
</thead>
<tbody>
<?php foreach($this->currentArray as $sn=>$row):?>
<tr>
<td><?php echo $row['grade']?></td>
<td><?php echo $row['class_sn']?></td>
<td><?php echo $row['number']?></td>
<?php if (isset($this->oldArray[$row['sn']])):?>
<td><?php echo $this->oldArray[$row['sn']]['grade']?></td>
<td><?php echo $this->oldArray[$row['sn']]['class_sn']?></td>
<td><?php echo $this->oldArray[$row['sn']]['number']?></td>
<?php else:?>
<td></td><td></td><td></td>
<?php endif?>
<td><?php echo $row['name']?></td>
</tr>
<?php endforeach?>
</tbody>
</table>
